﻿using System;
using System.Collections.Generic;
using System.Linq;
using Recon.Portal.DataObjects;
using Recon.Portal.Data;

namespace Recon.Portal.Business
{
    public class DiscountPenaltyEntitiy
    {
        #region: Public Constructor
        public DiscountPenaltyEntitiy()
        {

        }
        #endregion

        #region: Public Methods
        public int AddDiscountPenalty(DiscountPenalty dicountPenalty)
        {
            DBFactory db = new DBFactory();
            return db.AddDiscountPenalty(dicountPenalty);
        }
        public List<DiscountPenalty> GetDiscountDetails(string DiscountCode, string CustomerId)
        {
            DBFactory db = new DBFactory();
            return db.GetDiscountDetails(DiscountCode, CustomerId);
        }
        public List<DiscountPenalty> GetPenaltyDetails(string PenaltyCode, string CustomerId)
        {
            DBFactory db = new DBFactory();
            return db.GetPenaltyDetails(PenaltyCode, CustomerId);
        }
        public int ModifyDiscountPenalty(DiscountPenalty dicountPenalty)
        {
            DBFactory db = new DBFactory();
            return db.ModifyDiscountPenalty(dicountPenalty);
        }
        #endregion
    }
}